<?php echo $this->Html->link("Add a new role", array("controller" => "roles", "action" => "add")); ?>
<?php echo $this->Form->create(array('action' => 'delete')); ?>
<table>
	<tr>
		<th></th>
		<th>Name</th>
		<th>Access</th>
		<th>Users</th>
		<th>Created</th>
		<th>Modified</th>
		<th>ID</th>
	</tr>
	<?php foreach($roles as $role): ?>
		<tr>
			<td><?php echo $this->Form->checkbox('selectedRoles.', array("value" => $role['Role']['id'], "hiddenField" => false)); ?></td>
			<td><?php echo $this->Html->link($role['Role']['name'], array("action" => "edit/" . $role['Role']['id'])); ?></td>
			<td><?php echo $accessRoles[$role['Role']['access']]; ?></td>
			<td><?php echo $role['Role']['user_count']; ?></td>
			<td><?php echo $role['Role']['created']; ?></td>
			<td><?php echo $role['Role']['modified']; ?></td>
			<td><?php echo $role['Role']['id']; ?></td>
		</tr>
	<?php endforeach; ?>
</table>
<?php echo $this->Form->End('Delete Selected'); ?>